Skip to main content

Add Services to Product

PATCH /api/v1/products/{productId}/tenants/{tenantId}/configs

Description​

Add services to an existing product within a tenant’s account.

πŸ”‘ Authentication​

This endpoint requires authentication via a Bearer Token.

ParamValueType
token{{tenantUserAccessToken}}string

Path Parameters​

These parameters must be included in the URL path.

NameTypeDescription
productIdstringThe ID of the product to which services will be added
tenantIdstringThe ID of the tenant associated with the product

Request Body​

NameTypeDescription
productIdstringThe ID of the product being updated
servicesarrayList of service IDs to be associated with the product

Example Request​

PATCH /api/v1/products/{{productId}}/tenants/{{tenantId}}/configs
Authorization: Bearer {{tenantUserAccessToken}}
Content-Type: application/json
{
"productId": "67a81ecca9a55da218c22c35",
"services": ["67a807b4a500fdac939a1e7c"]
}

Response Code: 200 - OK​

{
"_id": "67a81ecca9a55da218c22c35",
"name": "Intelligent Granite Gloves",
"overview": "Shirt",
"requirements": ["new", "old"],
"code": "intelligent_granite_gloves",
"photo": "https://res.cloudinary.com/rensourceenergy/image/upload/v1739071179/photos/ixgqyormjfzludq8sj8y.png",
"config": {
"mobileApp": [
{
"label": "Webhook URL",
"key": "webhookUrl",
"required": true,
"value": "string",
"valueType": "string",
"formType": "input",
"_id": "67a81ecca9a55da218c22c36",
"formOptions": []
}
],
"pwaApp": [
{
"label": "Webhook URL",
"key": "webhookUrl",
"required": true,
"value": "string",
"valueType": "string",
"formType": "input",
"_id": "67a81ecca9a55da218c22c37",
"formOptions": []
}
],
"webApp": [
{
"label": "Webhook URL",
"key": "webhookUrl",
"required": true,
"value": "string",
"valueType": "string",
"formType": "input",
"_id": "67a81ecca9a55da218c22c38",
"formOptions": []
}
],
"adminApp": [
{
"label": "Webhook URL",
"key": "webhookUrl",
"required": true,
"value": "string",
"valueType": "string",
"formType": "input",
"_id": "67a81ecca9a55da218c22c39",
"formOptions": []
}
]
},
"services": ["67a807b4a500fdac939a1e7c"],
"tenant": "67a81e0478c623946a5e4a49",
"display": "PUBLIC",
"type": "TENANT",
"category": "WHITE_LABEL",
"classification": [],
"bio": {
"title": "input_firewall.rms",
"description": "If we override the capacitor, we can get to the EXE protocol through the online XML driver!"
},
"deleted": false,
"createdBy": "SYSTEM",
"deletedBy": null,
"updatedBy": null,
"createdAt": "2025-02-09T03:19:40.485Z",
"updatedAt": "2025-02-09T03:53:02.236Z",
"__v": 0
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request PATCH \ 
--url /api/v1/products/{productId}/tenants/{tenantId}/configs \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!